import {RouterMount,createRouter} from 'utils/uni-simple-router/uni-simple-router.js';

const router = createRouter({
	platform: process.env.VUE_APP_PLATFORM,  
	routes: [...ROUTES]
});

router.beforeEach((to, from, next) => {
	console.log('前置守卫')
	console.log(to)
	next();
});
// 全局路由后置守卫
router.afterEach((to, from) => {
	console.log('后置守卫')
	console.log(to)
})

export {
	router,
	RouterMount
}